import {
    post,
} from '@/api/request.js'

const submitForm = async (_this) => {
    const params = {
        userid: _this.userInfo.id,
        username: _this.username,
        avatar: _this.useravatar
    }
    const res = await post('/v3/userinfo/edit', params)
    if (!res) return
    return res
}

module.exports = {
    submitForm,
}